/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.ispc.core.entity;

import com.intelligent.ispc.common.persistence.BaseEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by Peter.Li on 2015/10/27.
 */
@Entity
@Table(name = "t_statisticanalysisparameter")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class StatisticAnalysisParameter extends BaseEntity {

    private Integer distributionChartGroupingNumber;
    private Integer controlChartGroupingNumber;
    private String analysisName;

    @ManyToOne
    @JoinColumn(name = "project_id")
    private Project project;


    public Integer getDistributionChartGroupingNumber() {
        return distributionChartGroupingNumber;
    }

    public void setDistributionChartGroupingNumber(Integer distributionChartGroupingNumber) {
        this.distributionChartGroupingNumber = distributionChartGroupingNumber;
    }

    public Integer getControlChartGroupingNumber() {
        return controlChartGroupingNumber;
    }

    public void setControlChartGroupingNumber(Integer controlChartGroupingNumber) {
        this.controlChartGroupingNumber = controlChartGroupingNumber;
    }

    public String getAnalysisName() {
        return analysisName;
    }

    public void setAnalysisName(String analysisName) {
        this.analysisName = analysisName;
    }

    public Project getProject() {
        return project;
    }

    public void setProject(Project project) {
        this.project = project;
    }
}
